﻿using System.ComponentModel;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Devonline.Identity.Admin.Controllers;

/// <summary>
/// 附件及文件操作类服务通用接口
/// </summary>
[ApiController]
[Route("api/[controller]")]
[Description("附件服务")]
[Authorize(Roles = GROUP_MAINTAINERS)]
[AccessAuthorize(Code = "AS0XAttachment", Name = "附件服务", ResourceType = ResourceType.Service)]
public class AttachmentsController(
    ILogger<AttachmentsController> logger,
    AspNetCore.IDataService<IdentityDbContext, Attachment> dataService,
    IAttachmentService attachmentService,
    IFileService fileService) :
    AttachmentServiceController<IdentityDbContext>(logger, dataService, attachmentService, fileService);